<div class="container-fluid">
    <h3 style="color:#8C525B;border-bottom:1px solid #F1F1F1;padding-bottom:10px;padding-left:10px;">客户来源</h3>
    <div class="panel panel-default">
        <div class="panel-heading">
            <p class="panel-title" style="height:35px;line-height:35px">
                关怀方式列表
                <a href="care_type.php?action=add" class="btn btn-info pull-right">添加</a>
            </p>
        </div>
        <div class="content">
            <table class=" table table-bordered" >
                <tr>
                    <th>序号</th>
                    <th>关怀方式</th>
                    <th>注意事项</th>
                    <th>操作</th>
                </tr>
                <?php if(isset($res)):?>
                <?php foreach($res as $v):?>
                <tr>
                    <td><?php echo $v[0];?></td>
                    <td><?php echo $v[1];?></td>
                    <td><?php echo $v[2];?></td>
                    <td>
                        <a href="care_type.php?action=update&ct_id=<?php echo $v[0]?>"><span class="glyphicon glyphicon-edit"></span>
                            编辑
                        </a>
                       <a href="care_type.php?action=delete&ct_id=<?php echo $v[0]?>"><span class="glyphicon glyphicon-trash"></span>
                           删除
                       </a>
                    </td>
                </tr>
                <?php endforeach;?>
                <?php endif;?>
            </table>
        </div>
    </div>
</div>